Skip to content

Domoticz

322 Topics 2.3k Posts
  • Repeater failing?

    4
    0 Votes
    4 Posts
    2k Views
    rvendrameR
    @Steve-Caster , yes it can be a power issue. Cheap phone chargers usually have high noise at its 5V output, for example. Arduino itself is more tolerant to it, however the nRF radio is very sensitive to power noise/oscillation. Sometimes just a capacitor between radio's VCC / GND helps. Have a look at the "Connecting a Decoupling-Capacitor" here
  • One for All

    domoticz
    6
    0 Votes
    6 Posts
    3k Views
    fetsF
    I had to get domoticz beta version to get scene/group available, can't remember what version I had previously. Anyway group is exactly what I wanted ....
  • Where do i find info on sending/receiving values from sensor to Domoticz

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Duplicate Sensors

    5
    0 Votes
    5 Posts
    2k Views
    D
    Ok, Thanks. Will give that a try
  • Humidity sketch not read by Domoticz

    1
    0 Votes
    1 Posts
    789 Views
    No one has replied
  • Dimmer doesn't appear in devices

    33
    0 Votes
    33 Posts
    13k Views
    SparkmanS
    @andrezibaia You're welcome and glad to hear you got it resolved. Cheers Al
  • Domoticz and MQTT Connections

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Multi sensor how to change basic script

    3
    0 Votes
    3 Posts
    2k Views
    J
    https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/HumiditySensor/HumiditySensor.ino
  • How do I send a REST command?

    4
    0 Votes
    4 Posts
    4k Views
    P
    What are you trying to archieve with this? What is the receiving end? I think you can send your "ajax call" from lua script with os.execute method using curl if you are in linux enviroment. commandArray = {} if (devicechanged['NameOfYourSwitch'] == 'On') then os.execute('/usr/bin/curl -X PUT -d STATE=true 192.168.0.22:4455/devices/{udn}') else if(devicechanged['NameOfYourSwitch'] == 'Off') then os.execute('/usr/bin/curl -X PUT -d STATE=false 192.168.0.22:4455/devices/{udn}') end return commandArray And give it a name with prefix: script_device_xxxxxxx.lua where xxxxxxx is name for your script. Then domoticz will launch it everytime some device state changes. Location for it is script/lua under your domoticz folder.
  • Help needed on a sketch...

    16
    0 Votes
    16 Posts
    5k Views
    B
    Hi there, I'm having another sketch problem.. In order to try and save battery power on my moisture sensors I'm trying to use a IO pin as power by setting it high for some time, let the sensor take a measurement, send the results to the gateway, setting the IO pin low again, let the node go to sleep for some time . This works only one time, the node presents itself to the gateway, sends data but after that it's not seen again after the expected sleep time. My guess is that somehow after puting the IO pin low it doesn't come back up in a high state. The strange thing is that when I measure the current on the pins of my moisture sensor with a multimeter the current goes from 0 to aprox 4.27V in the given time, so actually that indicates the pin is going from high to low as needed, but somehow the radio doesn't come back up... This is my code: #include <SPI.h> #include <MySensor.h> #define CHILD_ID_LIGHT 0 #define LIGHT_SENSOR_ANALOG_PIN 1 #define MIN 300 // Liquid #define MAX 700 // Air int sensorPin = A0; // select the input pin for the potentiometer int sensorValue = 0; // variable to store the value coming from the sensor int power =4; MySensor gw; MyMessage msg(CHILD_ID_LIGHT, V_HUM); int lastLightLevel; void setup(){ pinMode(power, OUTPUT); digitalWrite(power, HIGH); delay(3000); Serial.begin(9600); gw.begin(); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Mobile Sensor 1", "Kruiden"); // Register all sensors to gateway (they will be created as child devices) gw.present(CHILD_ID_LIGHT, S_HUM); delay (2000); } void loop(){ // read the value from the sensor: digitalWrite(power, HIGH); delay (5000); sensorValue = analogRead(sensorPin); delay(1000); int lastsensorValue = sensorValue; Serial.println(sensorValue); int sendValue = map(sensorValue, 0, 842, 0, 100); gw.send( msg.set( sendValue ) ); delay(10000); digitalWrite(power, LOW); delay (2000); gw.sleep(60000); } Does anyone have any clue..?
  • Domoticz crashes after more than one node being presented

    10
    0 Votes
    10 Posts
    5k Views
    M
    I've done the above sudo rmmod w1_gpio, a couple reboots and at this moment it detects a unknown energie meter and isn't crashing :-) So maybe some smart brains should have a look at this.....
  • Temp and Relay node

    19
    0 Votes
    19 Posts
    10k Views
    AWIA
    @mikee in the setup loop for the temp sensors you are also presenting the relay. So one time for each temp sensor. You can just place it outside of the loop. for (int i=0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) { gw.present(i, S_TEMP); gw.present(RELAY_CHILD, S_LIGHT); digitalWrite(RELAY_PIN, RELAY_OFF); pinMode(RELAY_PIN, OUTPUT); } It won't solve your problem but is more decent. Then try to make sure you are getting the relay input from the controller by looking at the serial output of the node
  • Possible to control Wemo-bulbs or Hue-bulbs without bridge?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Ethernet gateway doesn't work with Domoticz.

    ethernet domoticz
    11
    0 Votes
    11 Posts
    7k Views
    S
    I have created a topic in the forum before, with tcpdump examples. http://www.domoticz.com/forum/viewtopic.php?f=6&t=6112 But the problem is still there, hopefully soon fix.
  • Messages received by gateway in strange format

    5
    0 Votes
    5 Posts
    2k Views
    S
    Yes, sorry. Baud rate is indeed 115200 and not 115600. I'll have to check Domoticz to see if I can change those values. I would expect others to have the same problem if those were set incorrectly. I seem to be the only one.
  • Newbie question about network security

    3
    0 Votes
    3 Posts
    2k Views
    S
    Thanks. Didn't know I had to secure that at the Domoticz end. Got it.
  • [Domoticz] Electrical Sensor?

    4
    0 Votes
    4 Posts
    3k Views
    A
    Does anyone tested/use the sketch from MySensors website? It sends pulse count and usage calculated... Just the values sometimes seems very strange...
  • No devices in Domoticz

    6
    0 Votes
    6 Posts
    4k Views
    AWIA
    @kopite Use the Serial monitor on the pulse meter Arduino and check if any VAR messages are sent with status ok. (debug on = default). If so then you know that at least the Gateway (and therefore Domoticz) is receiving information. If so and the Pulse meter data is not receive you could try a Temp or Light sensor to test if that works. Happy debugging :)
  • Domoticz wont toggle light switch via ethernet gateway?

    7
    0 Votes
    7 Posts
    4k Views
    S
    @floris Ok thanks, I've seen that post but that was not a solution to the oneway communication.
  • Domoticz Beta for MySensors official support?

    18
    0 Votes
    18 Posts
    9k Views
    raditvR
    if you dont want to install anything to restart domoticz when it's crash. you can put crontab to check it with bash script like this put this on your cront : */1 * * * * sudo /opt/Domoticz/scripts/online_check.sh 2>&1 >> /dev/null and this is online_check.sh #!/bin/bash #Title check_domoticz_online.sh # check domoticz sudo service domoticz.sh status # if not found - equals to 1, start it if [ $? -eq 1 ] then sudo service domoticz.sh restart else echo "Domoticz running - do nothing" fi

16

Online

11.7k

Users

11.2k

Topics

113.1k

Posts